home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / amos / amosl0794.lzh / AMOSLIST / 000088_amos-request@svcs1.digex.net_Sat Jul 23 16:53:02 1994.msg < prev    next >
Internet Message Format  |  1994-08-01  |  3KB

  1. Received: from hela.INS.CWRU.Edu by nfs1.digex.net with SMTP id AA23153
  2.   (5.67b8/IDA-1.5 for <mcox@access.digex.net>); Sat, 23 Jul 1994 16:53:00 -0400
  3. Received: from svcs1.digex.net (svcs1.digex.net [164.109.10.23]) by hela.INS.CWRU.Edu with SMTP (8.6.8.1+cwru/CWRU-2.1-freenet-gw)
  4.     id QAA06718; Sat, 23 Jul 1994 16:52:55 -0400 (from amos-request@svcs1.digex.net)
  5. Received: by svcs1.digex.net id AA05302
  6.   (5.67b8/IDA-1.5 for amos-out); Sat, 23 Jul 1994 15:50:34 -0400
  7. Received: from nfs1.digex.net by svcs1.digex.net with SMTP id AA05298
  8.   (5.67b8/IDA-1.5 for <amos@svcs1.digex.net>); Sat, 23 Jul 1994 15:50:32 -0400
  9. Received: from access1.digex.net by nfs1.digex.net with SMTP id AA21462
  10.   (5.67b8/IDA-1.5 for <amos-list@access.digex.com>); Sat, 23 Jul 1994 15:50:31 -0400
  11. Received: by access1.digex.net id AA02344
  12.   (5.67b8/IDA-1.5 for amos-list@access.digex.com); Sat, 23 Jul 1994 15:50:29 -0400
  13. From: M D Cox <mcox>
  14. Message-Id: <199407231950.AA02344@access1.digex.net>
  15. Subject: Re: PIPEing
  16. To: amos-list@access.digex.net (AMOS Mailing List)
  17. Date: Sat, 23 Jul 1994 15:50:28 -0400 (ADT)
  18. In-Reply-To: <199407231921.PAA29227@sefl.satelnet.org> from "MenTaT - !Productions" at Jul 23, 94 03:21:19 pm
  19. X-Mailer: ELM [version 2.4 PL23]
  20. Mime-Version: 1.0
  21. Content-Type: text/plain; charset=US-ASCII
  22. Content-Transfer-Encoding: 7bit
  23. Content-Length: 1263      
  24. Status: RO
  25.  
  26. >I'm not sure how the shell handles pipes - the easiest way to test it 
  27. >would be to try it!
  28. But where would the input be?  I mean, do I start a FOR NEXT loop and read
  29. everything or is each line located at a specific address in memory, like
  30. command line arguments?
  31.  
  32. >AMOS program to redirect it, but it's not a very good solution...  For 
  33. >this kind of thing you're better off using C.
  34. I thought you might say that.  :(  I can write it in C without any problems
  35. just because it has special/standard facilities for STDIN and STDOUT.  I
  36. just get tired of C at work.
  37.  
  38. >Here's a nice awk program...  (Dunno if it works in GNU awk, but it works 
  39. >in System V...)
  40. I will give it a try in GAWK.
  41.  
  42. >Any awk/grep questions, just ask! :)  (And here's something nice - search 
  43. >for users with no password an a *NIX machine :
  44. AWK is quick and easy to do, fortunateluy I have experience with it.
  45.  
  46. >grep '^[^:]*::' /etc/passwd
  47. >Not that I condone this sort of activity... :)
  48. Oh, neither do I . . . ;)
  49.  
  50. Mike
  51. -- 
  52. Michael Cox                             Work:   mcox@access.digex.net
  53. A1200/120 w/1230XA 50/50/4 = SPEED!     Play:   aj639@Cleveland.FreeNet.EDU
  54.              For info on the AMOS Mailing List, contact me!
  55.              For AMOS Pro news, finger mcox@access.digex.net